package cn.keniykey.mc.landterritory.landflag.api;

import cn.keniykey.mc.landterritory.landflag.LandFlag;

public final class LandFlagSchedulerTask {
	private final String name_flag;
	private final int taskid_bukkit;
	
	LandFlagSchedulerTask(LandFlag flag, int taskid) {
		this.name_flag = flag.getName();
		this.taskid_bukkit = taskid;
	}
	
	public String getLandFlagName() {
		return this.name_flag;
	}
	int getTaskID() {
		return this.taskid_bukkit;
	}
	public void cancelTask() {
		LandFlagScheduler.cancelTask(this);
	}
}